<?php
class CommentModel extends Model
{
	protected $_validate=array(
		array('comment_author','require','昵称必填!'),
		array('comment_author_email','email','Email格式不正确!'),
	
	
	
	);
	//获取最新评论的文章ID数组
	public function getArrayPostID($num= '10')
	{
		return $this->where(array('comment_approved'=>'1'))->group('comment_post_ID')->field('comment_post_ID')->limit('0,'.$num)->order('comment_ID desc')->select();
	}
}
?>